<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>吉车惠后台管理系统</title>
    <%@include file="/global/global-other.jsp" %>
    <script type="text/javascript">
        $(function(){
            //$.messager.progress('close');
            try {
                if (typeof(viewDialog) == "undefined"){//未定义
                    try{
                        sessionDialog(errMsg("错误代码：997<br/>当前登录已超时，请重新登录！"));
                    }catch(e){
                        parent.parent.$.messager.alert("超时访问", errMsg("错误代码：-997<br/>当前登录已超时，请重新登录！"),'error',function(){
                            window.top.location.href="${ctx}/redirect/login";//返回首页
                        });
                    }
                    viewDialog = null;
                }else{
                    var vd = $(viewDialog);
                    if(vd){
                        $(viewDialog).dialog('close');
                    }
                    parent.parent.$.messager.alert("提示", errMsg("错误代码：997<br/>当前登录已超时，请重新登录！"),'error',function(){
                        window.top.location.href="${ctx}/redirect/login";//返回首页
                    });
                }
            } catch (e) {
                parent.parent.$.messager.alert("超时访问", errMsg("错误代码：-997<br/>当前登录已超时，请重新登录！"),'error',function(){
                    window.top.location.href="${ctx}/redirect/login";//返回首页
                });
            }
        });
    </script>
</head>
<body>
</body>
</html>